<?php
/**
 * Created by PhpStorm.
 * User: 氓羽
 * Date: 2018-4-20
 * Time: 15:41
 */
class testController{
    function show(){//控制器的作用是调用模型,并调用视图.将模型产生的数据传递给视图.并让相关视图去显示
        global $view;
        //$testModel = new testModel();
        $testModel = M('test');
        $testModel->get();
        $view ->assign('str', '德州学院');
        $view ->display('test.tpl');

    }
}